<?php


use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        if (!Schema::hasTable('ad_cloak_urls')) {
            Schema::create('ad_cloak_urls', function (Blueprint $table) {
                $table->comment('代理url');
                $table->id()->comment('ID');
                $table->string('url_from')->nullable(true)->comment('进入的链接');
                $table->string('url_to')->comment('到达的链接');
                $table->string('name')->comment('名称');
                $table->integer('type')->default(1)->comment('1.默认链接，2.自定义链接');
                $table->timestamps();
            });
        }

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
};
